<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
      let  a =12;
      function fun(){
        alert(a); //TDZ 暂时性死区
        let a =5;//TDZ 结束
  
  
      }
      fun();
    </script>
</head>
<body>
</body>
</html>